

class LinkList
{
	public char data;
	public LinkList next;
	public LinkList(char cd)
	{
		data = cd;
		next = null;
	}
}

public class LinkedListTest {
	public static void main(String[] args)
	{
		String str = "ASDF";
		LinkList head = new LinkList((char)0);
		LinkList temp = head;
		for(int i=0,len = str.length(); i < len; i++)
		{
			temp.next = new LinkList(str.charAt(i));
			head.data = (char)(i+1);
			temp = temp.next;
		}
		temp = head.next;
		System.out.println("LinkList length is: " + (int)head.data);
		for(int i=0,len = str.length(); i < len; i++)
		{
			System.out.println("data: " + temp.data);
			temp = temp.next;
		}
		
		System.out.println("HelloWorld");
	}
}




